/*UOKxfiychxAr+YwM+NNE8krWepUk5W/kGUty3BVL763nOsTwizCixwZDY+oWuMCL*/
/*
 * @Author: xiahui 
 * @PageInfo: 结构化附件 
 * @Date: 2019-02-26 15:29:31 
 * @Last Modified by: xiahui
 * @Last Modified time: 2019-07-10 15:53:32
 */
import { AREA, FIELDS } from '../../constance';
import { showWarningInfo } from '../../../../../scmpub/scmpub/pub/tool/messageUtil';
import { getLangByResId } from '../../../../../scmpub/scmpub/pub/tool/multiLangUtil';

export default function(props) {
	let checkArr = props.table.getCheckedRows(AREA.listTableId);
	if (!checkArr || checkArr.length < 1) {
		showWarningInfo(null, getLangByResId(this, '4004PURDAILY-000058')); /* 国际化处理： 请选择数据*/
		return;
	}

	this.setState({
		pk: checkArr[0].data.values[FIELDS.pk_ct_pu].value,
		showDoc: !this.state.showDoc
	});
}

/*UOKxfiychxAr+YwM+NNE8krWepUk5W/kGUty3BVL763nOsTwizCixwZDY+oWuMCL*/